package com.bosssoft.trainee.nontax.controller;

import com.bosssoft.trainee.nontax.common.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@RestController
@Slf4j
@RequestMapping("/inject")
public class SqlInjectionController {
    @PostMapping("/f1")
    public Object f1(@RequestBody Object obj) {
        log.info("SqlInjectionController->f1,接收参数,obj = " + obj.toString());
        log.info("SqlInjectionController->f1,返回.");
        return Result.success();
    }
    @GetMapping("/f2")
    public Object f2(@RequestParam(name = "var") String var) {
        log.info("SqlInjectionController->f2,接收参数,var = " + var);
        log.info("SqlInjectionController->f2,返回.");
        return Result.success();
    }
    @GetMapping("/f3/{var}")
    public Object f3(@PathVariable("var") String var) {
        log.info("SqlInjectionController->f3,接收参数,var = " + var);
        log.info("SqlInjectionController->f3,返回.");
        return Result.success();
    }
}
